package com.itcast.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author feng js
 */
@RestController
public class FallbcakController {

    @GetMapping("fallbackMethod")
    public Map fallback() {
        Map<String, Object> map = new HashMap<>();
        map.put("code","500");
        map.put("mesg","网络错误");
        return map;
    }
}
